package com.anjie.powerproject.pojo.dto;


import java.util.List;

public class TaskConfigDTO {
    //id和point表的id一样,标识该TaskConfigDTO对应哪个point 方便进行排序
    private Integer id;
    private Integer pointId;
    private String name;
    private String devCode;
    /*
    ** sourceType对应数据库和taskConfig的getType字段，因为和前端某个库函数重名,1对应coral,2对应xha
    *  taskConfig和数据库中的getType都是integer类型，前端需要String类型，此处改成String
    */
    private String sourceType;
    private List<String> intervalTypeDownloadList;
    private List<String> intervalTypeUploadList;
    private String statisticType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPointId() {
        return pointId;
    }

    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSourceType() { return sourceType; }

    public void setSourceType(String getType) { this.sourceType = getType; }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public List<String> getIntervalTypeDownloadList() {
        return intervalTypeDownloadList;
    }

    public void setIntervalTypeDownloadList(List<String> intervalTypeDownloadList) {
        this.intervalTypeDownloadList = intervalTypeDownloadList;
    }

    public List<String> getIntervalTypeUploadList() {
        return intervalTypeUploadList;
    }

    public void setIntervalTypeUploadList(List<String> intervalTypeUploadList) {
        this.intervalTypeUploadList = intervalTypeUploadList;
    }

    public String getStatisticType() {
        return statisticType;
    }

    public void setStatisticType(String statisticType) {
        this.statisticType = statisticType;
    }

    @Override
    public String toString() {
        return "TaskConfigDTO{" +
                "id=" + id + '\'' +
                "pointId=" + pointId + '\'' +
                ", name='" + name + '\'' +
                ", devCode='" + devCode + '\'' +
                ", getType='" + sourceType + '\'' +
                ", intervalTypeDownloadList=" + intervalTypeDownloadList + '\'' +
                ", intervalTypeUploadList=" + intervalTypeUploadList + '\'' +
                ", statisticType='" + statisticType + '\'' +
                '}';
    }
}
